<?php

/**
 * Object/Nationalite.php
 */

namespace RHX\Model\Object;

use Zend\Db\Adapter\Adapter;

class Nationalite {

    public $id;
    public $libelle;
    public $pays;
    protected $adapter;

    /**
     * Constructeur
     *
     * @param \Zend\Db\Adapter\Adapter $adapter
     * @param array $data
     */
    public function __construct(Adapter $adapter, $data = array()) {
	$this->adapter = $adapter;
	$this->exchangeArray($data);
    }

    /**
     * Remplissage
     *
     * @param array $data
     */
    public function exchangeArray($data) {
	$this->id	 = isset($data['id']) ? (int) $data['id'] : null;
	$this->libelle	 = isset($data['libelle']) ? $data['libelle'] : '';
	$this->pays	 = isset($data['pays']) ? (int) $data['pays'] : 0;
    }

}

?>
